package com.time.sky.controller;

import com.time.sky.entity.Work;
import com.time.sky.mapper.WorkMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class WorkController {
    @Autowired
    private WorkMapper workMapper;
    @RequestMapping("queryWork")
    public List<Work> queryWork(){
       return workMapper.queryWork();
    }
}
